package com.snow.dayou.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * All rights Reserved, Designed By www.cusc.com
 *
 * @author yanke
 * @Title: LoginApplicationListener
 * @Package com.snow.dayou.event
 * @Description:类描述
 * @Email yanke@cu-sc.com
 * @version: v1.0.0
 * @date: 2021/4/8/0008 16:07
 * @Copyright: 2021  www.faw.com.cn Inc. All rights reserved. <br/>
 * Modification History:<br/>
 * Date         Author          Version            Description<br/>
 * *---------------------------------------------------------*<br/>
 * 2021/4/8/0008     Administrator           v1.0.0               修改原因<br/>
 * @since JDK 1.8
 */
@Component
@Slf4j
public class SendMessageApplicationListener implements ApplicationListener<SendMessageEvent> {

    @Override
    public void onApplicationEvent(SendMessageEvent sendMessageEvent) {
        String obj = sendMessageEvent.getObj();
        log.info(obj);
    }
}
